//
//  GB_BaseTextLabel.m
//  MELive
//
//  Created by 郭宝 on 16/10/22.
//  Copyright © 2016年 郭宝. All rights reserved.
//

#import "GB_BaseTextLabel.h"
#import "Macro.h"
@implementation GB_BaseTextLabel
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self)  {
        [self createLabel];
    }
    return self;
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self)  {
        [self createLabel];
    }
    return self;
}
- (void)createLabel {
    if (IS_IPHONE_5) {
        self.font = [UIFont systemFontOfSize:11];
    } else if (IS_IPHONE_6) {
        self.font = [UIFont systemFontOfSize:13];
    } else if (IS_IPHONE_6_PLUS) {
        self.font = [UIFont systemFontOfSize:14];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
